package com.kongmou.springReview.advanced.conditional;

import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Service;

@Service
@Conditional(WindowsCondition.class)//符合此类的条件则创建此类
public class WindowsListService implements ListService {

	@Override
	public String showComman() {
		return "dir";
	}

}
